package change;

import dao.PayrollDatabase;
import dao.imp.GpayrollDatabase;
import domain.Employee;

public class ChangeNameTransaction extends ChangeEmployeeTransaction {
    private PayrollDatabase payrollDatabase = new GpayrollDatabase();
    private String newName;

    public ChangeNameTransaction(int empid, String newName) {
        super(empid);
        this.newName = newName;
    }

    @Override
    public void change(Employee employee) {
        employee.setName(newName);
    }

}
